package com.tkjt.pms.modules.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import com.tkjt.pms.diff.ITkIndexValueDiffService;

import lombok.extern.slf4j.Slf4j;

/**
 * 数据对比定时器
 */
@Slf4j
public class IndexValueDiffJob implements Job {
	
    @Autowired
    ITkIndexValueDiffService tkIndexValueDiffService;	
//    @Autowired
//	private SysConfigMapper sysConfigMapper;
    
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
    	log.info("scheduled fire time=",jobExecutionContext.getScheduledFireTime());   	
    	tkIndexValueDiffService.doDiff("kpi","C");
    	tkIndexValueDiffService.doDiff("kpi","G");
//    	tkIndexValueDiffService.doDiff("budget","C");
//    	tkIndexValueDiffService.doDiff("budget","G");
    	log.info("scheduled end.");
    }
}
